
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>与网络无关的Linux · GItBook笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="cpucode">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../linux_kernel_0_12/computer_composition.html" />
    
    
    <link rel="prev" href="../operating_system/process.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://blog.csdn.net/qq_44226094" target="_blank" class="custom-link">首页</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    目录
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Linux驱动开发</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../linux_driver/character_device_driver.html">
            
                <a href="../linux_driver/character_device_driver.html">
            
                    
                    字符设备驱动开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../linux_driver/linux_driver.html">
            
                <a href="../linux_driver/linux_driver.html">
            
                    
                    Linux驱动开发
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">安卓底层开发</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../android_bottom/hardware_abstraction_layer.html">
            
                <a href="../android_bottom/hardware_abstraction_layer.html">
            
                    
                    硬件抽象层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../android_bottom/smart_pointer.html">
            
                <a href="../android_bottom/smart_pointer.html">
            
                    
                    智能指针
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../android_bottom/AOSP.html">
            
                <a href="../android_bottom/AOSP.html">
            
                    
                    AOSP源码开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../android_bottom/summary.html">
            
                <a href="../android_bottom/summary.html">
            
                    
                    Android底层软硬件结合开发概述
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">操作系统</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../operating_system/operat_mechanism.html">
            
                <a href="../operating_system/operat_mechanism.html">
            
                    
                    操作系统的运行机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../operating_system/process.html">
            
                <a href="../operating_system/process.html">
            
                    
                    进程
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">linux一句话</li>
        
        
    
        <li class="chapter active" data-level="5.1" data-path="network_indepen.html">
            
                <a href="network_indepen.html">
            
                    
                    与网络无关的Linux
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Linux内核0.12</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../linux_kernel_0_12/computer_composition.html">
            
                <a href="../linux_kernel_0_12/computer_composition.html">
            
                    
                    微型计算机组成结构
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >与网络无关的Linux</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <!--
 * @Author: cpu_code
 * @Date: 2020-07-11 22:00:53
 * @LastEditTime: 2020-07-12 21:09:45
 * @FilePath: \note\linux_in_a_word\network_indepen.md
 * @Gitee: https://gitee.com/cpu_code
 * @Github: https://github.com/CPU-Code
 * @CSDN: https://blog.csdn.net/qq_44226094
 * @Gitbook: https://923992029.gitbook.io/cpucode/
--> 
<h1 id="&#x7F51;&#x7EDC;&#x65E0;&#x5173;">&#x7F51;&#x7EDC;&#x65E0;&#x5173;</h1>
<ul>
<li>@Author: cpu_code</li>
<li>@Date: 2020-07-12 14:09:20</li>
<li>@LastEditTime: 2020-07-12 21:08:35</li>
<li>@FilePath: \note\android_bottom\smart_pointer.md</li>
<li>@Gitee: <a href="https://gitee.com/cpu_code" target="_blank">https://gitee.com/cpu_code</a></li>
<li>@Github: <a href="https://github.com/CPU-Code" target="_blank">https://github.com/CPU-Code</a></li>
<li>@CSDN: <a href="https://blog.csdn.net/qq_44226094" target="_blank">https://blog.csdn.net/qq_44226094</a></li>
<li>@Gitbook: <a href="https://923992029.gitbook.io/cpucode/" target="_blank">https://923992029.gitbook.io/cpucode/</a></li>
</ul>
<h2 id="&#x4FEE;&#x6539;&#x4E3B;&#x673A;&#x540D;">&#x4FEE;&#x6539;&#x4E3B;&#x673A;&#x540D;</h2>
<pre><code class="lang-shell">vi /etc/sysconfig/network
</code></pre>
<pre><code class="lang-shell"># &#x4FEE;&#x6539; HOSTNAME &#x4E00;&#x884C;&#x4E3A; (&#x6CA1;&#x6709;&#x8FD9;&#x884C;, &#x90A3;&#x5C31;&#x6DFB;&#x52A0;&#x8FD9;&#x4E00;&#x884C;&#x5427;)
HOSTNAME=&#x4E3B;&#x673A;&#x540D;
</code></pre>
<pre><code class="lang-shell"># &#x8FD0;&#x884C;&#x547D;&#x4EE4;
hostname  # &#x4E3B;&#x673A;&#x540D;
</code></pre>
<p>&#x4E00;&#x822C;&#x8FD8;&#x8981;&#x4FEE;&#x6539; /etc/hosts &#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x4E3B;&#x673A;&#x540D;&#x3002;&#x8FD9;&#x6837;&#xFF0C;&#x65E0;&#x8BBA;&#x4F60;&#x662F;&#x5426;&#x91CD;&#x542F;&#xFF0C;&#x4E3B;&#x673A;&#x540D;&#x90FD;&#x4FEE;&#x6539;&#x6210;&#x529F;  </p>
<h2 id="ret-hat-linux-&#x542F;&#x52A8;&#x5230;&#x6587;&#x5B57;&#x754C;&#x9762;&#x4E0D;&#x542F;&#x52A8;-xwindow">Ret Hat Linux &#x542F;&#x52A8;&#x5230;&#x6587;&#x5B57;&#x754C;&#x9762;(&#x4E0D;&#x542F;&#x52A8; xwindow)</h2>
<pre><code class="lang-shell"># x=3:&#x6587;&#x672C;&#x65B9;&#x5F0F;  x=5:&#x56FE;&#x5F62;&#x65B9;&#x5F0F;
vi /etc/inittab
id:x:initdefault:
</code></pre>
<h2 id="linux-&#x7684;&#x81EA;&#x52A8;&#x5347;&#x7EA7;&#x66F4;&#x65B0;&#x95EE;&#x9898;">linux &#x7684;&#x81EA;&#x52A8;&#x5347;&#x7EA7;&#x66F4;&#x65B0;&#x95EE;&#x9898;</h2>
<p>&#x5BF9;&#x4E8E; redhat&#xFF0C;&#x5728; www.redhat.com/corp/support/errata/ &#x627E;&#x5230;&#x8865;&#x4E01;&#xFF0C; 6.1 &#x4EE5;&#x540E;&#x7684;&#x7248;&#x672C;&#x5E26;&#x6709;&#x4E00;&#x4E2A;&#x5DE5;&#x5177;up2date&#xFF0C;&#x5B83;&#x80FD;&#x591F;&#x6D4B;&#x5B9A;&#x54EA;&#x4E9B; rpm &#x5305;&#x9700;&#x8981;&#x5347;&#x7EA7;&#xFF0C;&#x7136;&#x540E;&#x81EA;&#x52A8;&#x4ECE; redhat &#x7684;&#x7AD9;&#x70B9;&#x4E0B;&#x8F7D;&#x5E76;&#x5B8C;&#x6210;&#x5B89;&#x88C5;  </p>
<pre><code class="lang-shell"># &#x5347;&#x7EA7;&#x9664; kernel &#x5916;&#x7684; rpm
up2date -u
</code></pre>
<pre><code class="lang-shell"># &#x5347;&#x7EA7;&#x5305;&#x62EC; kernel &#x5728;&#x5185;&#x7684; rpm
up2date -u -f
</code></pre>
<p>&#x7531;&#x4E8E; Red Hat Network SSL &#x8BC1;&#x4E66;&#x8FC7;&#x671F;&#xFF0C;&#x6240;&#x4EE5;&#x5E94;&#x5728; rhn_register || up2date &#x4E4B;&#x524D;&#x5148;&#x6267;&#x884C;&#x4E00;&#x884C; script &#x4EE5;&#x66F4;&#x65B0;&#x8BC1;&#x4E66;&#xFF1A;  </p>
<pre><code class="lang-shell">wget -q -O - https://rhn.redhat.com/help/new-cert.sh | /bin/bash
</code></pre>
<p>Debian &#x4E0B;&#x5347;&#x7EA7;&#x8F6F;&#x4EF6;&#xFF1A;  </p>
<pre><code class="lang-shell"># &#x524D;&#x63D0;&#xFF1A;&#x914D;&#x7F6E;&#x597D;&#x7F51;&#x7EDC;&#x548C; /etc/apt/sources.list&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x7528; apt-setup &#x8BBE;&#x7F6E;
apt-get update
apt-get upgrade
</code></pre>
<h2 id="windows-&#x4E0B;&#x770B;-linux-&#x5206;&#x533A;&#x7684;&#x8F6F;&#x4EF6;">windows &#x4E0B;&#x770B; linux &#x5206;&#x533A;&#x7684;&#x8F6F;&#x4EF6;</h2>
<pre><code class="lang-shell">Paragon.Ext2FS.Anywhere.2.5.rar 

explore2fs-1.00-pre4.zip
</code></pre>
<h2 id="mount-&#x7528;&#x6CD5;">mount &#x7528;&#x6CD5;</h2>
<pre><code class="lang-shell"># fat32 &#x7684;&#x5206;&#x533A;
mount -o codepage=936,iocharset=cp936 /dev/hda7 /mnt/cdrom
</code></pre>
<pre><code class="lang-shell"># ntfs &#x7684;&#x5206;&#x533A; 
mount -o iocharset=cp936 /dev/hda7 /mnt/cdrom
</code></pre>
<pre><code class="lang-shell"># iso &#x6587;&#x4EF6;
mount -o loop /abc.iso /mnt/cdrom
</code></pre>
<pre><code class="lang-shell"># USB &#x95EA;&#x5B58;
mount /dev/sda1 /mnt/cdrom
</code></pre>
<pre><code class="lang-shell"># &#x8F6F;&#x76D8;
mount /dev/fd0 /mnt/floppy
</code></pre>
<h2 id="&#x5728;-vmware-&#x7684;-linux-&#x4E2D;&#x4F7F;&#x7528;&#x672C;&#x5730;&#x786C;&#x76D8;&#x7684;-fat-&#x5206;&#x533A;">&#x5728; vmware &#x7684; LINUX &#x4E2D;&#x4F7F;&#x7528;&#x672C;&#x5730;&#x786C;&#x76D8;&#x7684; FAT &#x5206;&#x533A;</h2>
<h2 id="&#x5220;&#x9664;&#x540D;&#x4E3A;-a-&#x7684;&#x6587;&#x4EF6;">&#x5220;&#x9664;&#x540D;&#x4E3A;-a &#x7684;&#x6587;&#x4EF6;</h2>
<pre><code class="lang-shell">rm ./-a
</code></pre>
<h2 id="&#x5220;&#x9664;&#x540D;&#x4E3A;a-&#x7684;&#x6587;&#x4EF6;">&#x5220;&#x9664;&#x540D;&#x4E3A;\a &#x7684;&#x6587;&#x4EF6;</h2>
<pre><code class="lang-shell">rm \\a
</code></pre>
<h2 id="&#x5220;&#x9664;&#x540D;&#x5B57;&#x5E26;&#x7684;&#x548C;0&#x6587;&#x4EF6;">&#x5220;&#x9664;&#x540D;&#x5B57;&#x5E26;&#x7684;/&#x548C;&#x2018;\0&apos;&#x6587;&#x4EF6;</h2>
<h2 id="&#x5220;&#x9664;&#x540D;&#x5B57;&#x5E26;&#x4E0D;&#x53EF;&#x89C1;&#x5B57;&#x7B26;&#x7684;&#x6587;&#x4EF6;">&#x5220;&#x9664;&#x540D;&#x5B57;&#x5E26;&#x4E0D;&#x53EF;&#x89C1;&#x5B57;&#x7B26;&#x7684;&#x6587;&#x4EF6;</h2>
<h2 id="&#x5220;&#x9664;&#x6587;&#x4EF6;&#x5927;&#x5C0F;&#x4E3A;&#x96F6;&#x7684;&#x6587;&#x4EF6;">&#x5220;&#x9664;&#x6587;&#x4EF6;&#x5927;&#x5C0F;&#x4E3A;&#x96F6;&#x7684;&#x6587;&#x4EF6;</h2>
<h2 id="redhat-&#x8BBE;&#x7F6E;&#x6EDA;&#x8F6E;&#x9F20;&#x6807;">redhat &#x8BBE;&#x7F6E;&#x6EDA;&#x8F6E;&#x9F20;&#x6807;</h2>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; dsx2016.com 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x7AE0;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-07-12 21:09:47
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../operating_system/process.html" class="navigation navigation-prev " aria-label="Previous page: 进程">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../linux_kernel_0_12/computer_composition.html" class="navigation navigation-next " aria-label="Next page: 微型计算机组成结构">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"与网络无关的Linux","level":"5.1","depth":1,"next":{"title":"微型计算机组成结构","level":"6.1","depth":1,"path":"linux_kernel_0_12/computer_composition.md","ref":"linux_kernel_0_12/computer_composition.md","articles":[]},"previous":{"title":"进程","level":"4.2","depth":1,"path":"operating_system/process.md","ref":"operating_system/process.md","articles":[]},"dir":"ltr"},"config":{"plugins":["back-to-top-button","chapter-fold","code","splitter","-lunr","-search","search-pro","insert-logo","custom-favicon","pageview-count","tbfed-pagefooter","popup","-sharing","sharing-plus","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy dsx2016.com 2019","modify_label":"该文章修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"livereload":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"favicon":"./icon/book.ico","back-to-top-button":{},"pageview-count":{},"custom-favicon":{},"sharing":{"qq":true,"all":["douban","facebook","google","instapaper","linkedin","twitter","weibo","messenger","qq","qzone","viber","whatsapp"],"douban":true,"facebook":true,"weibo":true,"twitter":true,"pocket":true,"google":true,"qzone":true},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"insert-logo":{"style":"background: none; max-height: 30px; min-height: 30px","url":"https://s1.ax1x.com/2020/06/18/Nnpxmj.png"}},"theme":"default","author":"cpucode","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"GItBook笔记","language":"zh-hans","output.name":"site","links":{"sidebar":{"首页":"https://blog.csdn.net/qq_44226094"}},"gitbook":"3.2.3","description":"GitBook笔记"},"file":{"path":"linux_in_a_word/network_indepen.md","mtime":"2020-07-12T13:09:47.743Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-15T02:25:37.570Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

